<form id="add-form" class="form-horizontal mf_form" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_name" data-rule="required" class="form-control" name="row[store_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_bannerimage')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-store_bannerimage" data-rule="required" class="form-control" size="50" name="row[store_bannerimage]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-store_bannerimage" class="btn btn-danger faupload" data-input-id="c-store_bannerimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-store_bannerimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-store_bannerimage" class="btn btn-primary fachoose" data-input-id="c-store_bannerimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-store_bannerimage"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-store_bannerimage"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_slideimages')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-store_slideimages" data-rule="required" class="form-control" size="50" name="row[store_slideimages]" type="textarea">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-store_slideimages" class="btn btn-danger faupload" data-input-id="c-store_slideimages" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-store_slideimages"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-store_slideimages" class="btn btn-primary fachoose" data-input-id="c-store_slideimages" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-store_slideimages"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-store_slideimages"></ul>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Feature_ids')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-feature_ids" class="form-control" name="row[feature_ids]" type="text" data-role='tagsinput'-->
<!--                   data-tagsinput-options='{"trimValue":true, "autocomplete":{"url":"zzyy/feature/ajaxautocomplete"}}'>-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Feature_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-feature_ids" data-rule="" data-source="zzyy/feature/index" data-multiple="true" data-field="feature_name" class="form-control selectpage" name="row[feature_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-store_address" data-rule="required" class="form-control" name="row[store_address]" type="text" data-target="#holdMsg">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" class="btn btn-danger" data-toggle="addresspicker" data-lat-id="c-store_latitude" data-lng-id="c-store_longitude">选择经纬度</button></span>
                </div>
                <span class="msg-box" id="holdMsg"></span>
            </div>
            <span class="mf_backend_field_note">在"选择经纬度"里可以帮助你选择坐标</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_longitude')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_longitude" data-rule="required" class="form-control" name="row[store_longitude]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_latitude')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_latitude" data-rule="required" class="form-control" name="row[store_latitude]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-store_mobile" data-rule="required" class="form-control" name="row[store_mobile]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_desciptioncontent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-store_desciptioncontent" data-rule="" class="form-control editor" rows="5" name="row[store_desciptioncontent]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Store_waycontent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-store_waycontent" class="form-control editor" rows="5" name="row[store_waycontent]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>

<style>
    .mf_backend_field_note {
        display: block;
        margin-top: 0.5rem;
        color: #838fa1;
        font-size: 1.2rem;
    }
</style>
